<include file="Public:header" />
<script charset="utf-8" src="__PUBLIC__/admin/js/kindeditor-4.1.4/kindeditor-min.js"></script>
<script charset="utf-8" src="__PUBLIC__/admin/js/kindeditor-4.1.4/lang/zh_CN.js"></script>
<script type="text/javascript">
$(function(){	
	 KindEditor.create('textarea[name="content"]', {
		 		resizeType : 1,
				allowPreviewEmoticons : false,
                uploadJson :APP+'/Public/uploadByEditor/',
                allowFileManager : true,
				items : [
						'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
						'insertunorderedlist', '|', 'emoticons', 'image', 'link']				
     });
});
</script>
<body class="mainBackground">
	<include file="Public:menu" />
	<div class="main" id="mainContainer">
        <!--发布-->
    	<div class="content_box">
        	<div class="content_box_t">
            	<h3 class="fl">
               	回复评论
                </h3>
            </div>
            <div class="content_box_c">
            	<form action="__ACTION__" method="post" id="dataForm" name="dataForm" enctype="multipart/form-data">                	<div class="field">
						<label>来源</label>
						{$sourceArr[$data['source']]['title']}
					</div>
                	<div class="field pt15">
						<label>评论对象</label>
						<a href="#" style="color:#F00;" target="_blank">《{$sourceData.title}》</a>
					</div>                                                           
                	<div class="field pt15">
						<label>称呼</label>
						{$data.username}
					</div>
                    <div class="field pt15">
						<label>邮箱</label>
						{$data.email}
                    </div>                   
                    <div class="field pt15">
						<label>评论内容</label>
						{$data.content}
                    </div>                   
                    <div class="field pt15">
						<label>回复</label>
						<textarea class="text_input" name="content" id="content" cols="79" rows="15">{$replyData.content|default=''}</textarea>
                        <span class="input_notification  png_bg" id="reply_contentTip"></span>
                    </div>                                                                              
                    <div class="field pt15 clearfix">
                    	<input type="hidden" name="parent_id" value="{$data.id}"/>
                        <input type="hidden" name="parent_username" value="{$data.username}"/>
                        <input type="hidden" name="source" value="{$data.source}"/>
                        <input type="hidden" name="value_id" value="{$data.value_id}"/> 
                        <input type="hidden" name="reply_id" value="{$replyData.id|default=0}"/> 
                    	<input type="submit" value="提交" class="public_button fr" />
                    </div>                                                                               
                </form>
            </div>
        </div>            
        <!--发布结束-->
    </div>
</body>
</html>
